{% load state_display %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../static/personal_center/font_2369197_oqktwkt71s/iconfont.css" media="screen">
    <title>Title</title>
    <style>
        body, html {
            padding: 0px;
            margin: 0px;
            width: 100%;
            height: 100%;
        }
        .input-style {
            display: inline-block;
            width: 98%;
            height: 35px;
            font-size: 14px;
            border: none;
            background: white;
        }
        table {
            border-collapse: collapse;
            border-spacing: 0;
        }
        tr {
            height: 35px;
        }

        th {
            text-align: center;
        }
        .top_tag {
            border-bottom: #01AAED solid 2px;
            color: #01AAED;
        }

        .tab_top {
            width: 100px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            display: inline-block;
            cursor: pointer;
        }
        /*tbody td {*/
        /*    overflow: hidden;*/
        /*    white-space: nowrap;*/
        /*    text-overflow: ellipsis;*/
        /*}*/

        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }

        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .a_tag_cla{
            display: block;
            /*超出隐藏*/
            overflow: hidden;
            /*禁止换行*/
            white-space: nowrap;
            /*超出用省略号代替*/
            text-overflow: ellipsis;height: 30px;line-height: 30px;padding-left: 1%;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
        .shade {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(36, 36, 36, 0.5);
            display: none;
            z-index: 10000;
        }
        #addForm2 {
            width: 800px;
            height: 600px;
            background: #F5F5F5;
            position: absolute;
            border: #dfdfdf solid 1px;
            margin: auto;
            border-radius: 3px;
            top: 50%;
            left: 50%;
            /* 实现鼠标拖拽使用css3效果 */
            transform: translate(-50%, -50%);
            z-index: 10100;
            font-size: 0;
        }
        #title2 {
            display: flex;
            justify-content: space-between;
            box-sizing: border-box;
            padding: 0 10px;
            height: 40px;
            color: #0b0b0b;
            cursor: move;
            border-bottom: #dfdfdf solid 1px;
            width: 100%;background: #f4f7fa;border-top-left-radius: 5px;border-top-right-radius: 5px;
        }
        #loading { background: #fff url(../../static/public_file/images/jiazai.gif) no-repeat scroll center center; height: 100%; width: 100%; background-size: 10%; position: fixed; margin-top: 0px; top: 0px; left: 0px; bottom: 0px; overflow: hidden !important; right: 0px; z-index: 999999;background-color: rgba(255, 255, 255, 0.08);}

    </style>
</head>
<body>
    <div id="loading">
        <div id="loading-center">
        </div>
    </div>

    <div style="width: 100%;height: 40px;background: white;border-bottom: #cfcfcf solid 0.5px;line-height: 40px;color: black;">
        <div id="DW_tag" class="tab_top top_tag" onclick="change_mind('DW')">
            申请详情
        </div>
        <div id="lct_tag" class="tab_top" onclick="change_mind('lct')">
            流程图
        </div>
        <button onclick="ExportCar()" style="float: right;width: 100px;height: 30px;line-height: 30px;margin-top: 5px;border-radius: 3px;border: #1E90FF solid 0.5px;background-color: #1E90FF;color: white;cursor: pointer;margin-right: 15px;">提交</button>

        <div style="width: 110px;float: right;text-align: center;height: 40px;">
            <button style="line-height: 27px;border-radius: 3px;border: #1E90FF solid 0.5px;width: 100px;height: 30px;margin-top: 5px;background: #1E90FF;color: white;"><a href="javascript:history.go(-1)" style="color: white;">返回</a></button>
        </div>
    </div>

    <div id="DW" style="width: 100%;height: 95%;background: white;overflow: auto;">
        <div id="menu_from" style="width: 100%;height: auto;color: #2C3E50;display: inline-block;vertical-align: top;background: white;">
            <div style="width: 100%;height: 90%;display: inline-block;vertical-align: center;">
                <div style="width: 95%;margin-left: 2.5%;">
                    <table style="width: 100%;margin-top: 20px;">
                        <tr>
                            <td colspan="4" style="width: 95%;margin-left: 2.5%;height: 40px;padding-left: 0.5%;line-height: 40px;border: #cfcfcf solid 1px;text-align: center;">
                                <h3 id="form_name" style="letter-spacing: 8px;">快捷用印授权</h3>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="width: 95%;margin-left: 2.5%;height: 40px;padding-left: 0.5%;line-height: 40px;background: #F5F5F5;border: #cfcfcf solid 1px;border-top: none;">基本信息</td>
                        </tr>
                        <tr style="margin-left: 1%;">
                            <td style="width: 10%;border: #cfcfcf solid 0.5px;text-align: right;height: 35px;line-height: 35px;letter-spacing: 2px;padding-right: 1%;">
                                申&nbsp;请&nbsp;人
                            </td>
                            <td id="applicat" style="width: 40%;height: 35px;line-height: 35px;padding-left: 1%;border: #cfcfcf solid 0.5px;">{{ obj.apply_user.real_name }}</td>

                            <td style="width: 10%;border: #cfcfcf solid 0.5px;text-align: right;height: 35px;line-height: 35px;padding-right: 1%;">
                                申请部门
                            </td>
                            <td id="department" style="width: 40%;border: #cfcfcf solid 0.5px;padding-left: 1%;line-height: 35px;">{{ obj.company.name }}</td>
                        </tr>
                        <tr style="margin-left: 1%;">
                            <td style="width: 10%;border: #cfcfcf solid 0.5px;text-align: right;height: 35px;line-height: 35px;padding-right: 1%;">
                                生效时间
                            </td>
                            <td id="take_effect_time" style="width: 30%;border: #cfcfcf solid 0.5px;padding-left: 1%;line-height: 35px;">{{ obj.take_effect_time }}</td>
                            <td style="width: 10%;border: #cfcfcf solid 0.5px;text-align: right;height: 35px;line-height: 35px;padding-right: 1%;">
                                失效时间
                            </td>
                            <td id="lose_efficacy_time" style="width: 50%;height: 35px;line-height: 35px;padding-left: 1%;border: #cfcfcf solid 0.5px;">
                                {{ obj.lose_efficacy_time }}
                            </td>
                        </tr>
                        <tr style="margin-left: 1%;">
                            <td style="width: 10%;border: #cfcfcf solid 0.5px;text-align: right;height: 35px;line-height: 35px;padding-right: 1%;">
                                申请类型
                            </td>
                            <td colspan="3" id="shenqing_type" style="width: 90%;border: #cfcfcf solid 0.5px;padding-left: 1%;line-height: 35px;">{{ obj.authorization_type }}</td>
                        </tr>
                    </table>
                    <table id="leimuId" style="width: 100%;">
                        <tr style="margin-left: 1%;">
                            <td colspan="6" style="width: 95%;margin-left: 2.5%;height: 40px;padding-left: 0.5%;line-height: 40px;background: #F5F5F5;border: #cccccc solid 1px;border-top: none;">
                                授权详情
                                {% if is_edit == 'true' %}
                                    <span style="float: right;padding-right: 10px;color: #00a0e9;cursor: pointer;" onclick="add_other()">添加</span>
                                {% endif %}
                            </td>
                        </tr>
                        <tr style="margin-left: 1%;">
                            <th style="width: 10%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">序号</th>
                            <th style="width: 40%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                授权印章
                            </th>
                            <th style="width: 25%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                授权类目
                            </th>
                            <th style="width: 25%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                授权级别
                            </th>
                        </tr>

                        {% if reason|length %}
                            {% for foo in reason %}
                                <tr style="margin-left: 1%;">
                                    <td class="leimuxuhao" style="width: 10%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">{{ foo.xuhao }}</td>
                                    <td style="width: 40%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                        {% if is_edit == 'false' %}
                                            {% for seal in seal_obj %}
                                                {% if foo.yinzhang == seal.id %}
                                                    {{ seal.seal_name }}
                                                {% endif %}
                                            {% endfor %}
                                        {% else %}
                                            {% if obj.authorization_type == '法人授权' %}
                                                <select name="choose_seal" id="" style="width: 100%;height: 100%;border: none;outline: none;">
                                                    {% for seal in seal_obj %}
                                                        <option value="{{ seal.id }}" {% if foo.yinzhang == seal.id %} selected {% endif %} style="text-align: center;">{{ seal.seal_name }}</option>
                                                    {% endfor %}
                                                </select>
                                            {% else %}
                                                京山市人民医院公章
                                            {% endif %}
                                        {% endif %}
                                    </td>
                                    <td class="leimuneirong" id="span_{{ foo.xuhao }}" style="width: 25%;border: #cfcfcf solid 0.5px;height: 35px;line-height: 35px;padding-left: 0.5%;text-align: center;">
                                        {{ foo.neirong }}
                                    </td>
                                    <td class="shouquan_leval" style="width: 22.5%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;cursor: pointer;">
                                        {{ foo.leval }}
                                    </td>
                                </tr>
                            {% endfor %}
                        {% else %}
                            <tr style="margin-left: 1%;">
                                <td class="leimuxuhao" style="width: 5%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">1</td>
                                <td style="width: 25%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                    <select name="choose_seal" id="" style="width: 100%;height: 100%;border: none;outline: none;">
                                        {% for seal in seal_obj %}
                                            <option value="{{ seal.id }}">{{ seal.seal_name }}</option>
                                        {% endfor %}
                                    </select>
                                </td>
                                <td class="leimuneirong" id="span_1" onclick="model_inline(this.id)" style="width: 50%;border: #cfcfcf solid 0.5px;text-align: left;height: 35px;line-height: 35px;cursor: pointer;color: #cccccc;">
                                    请填写授权类目
                                </td>
                                <td style="width: 20%;border: #cfcfcf solid 0.5px;text-align: left;cursor: pointer;">
                                    <div id="shouquan_type_1" style="outline: none;display: -moz-inline-box; display: inline-block;width:95%;cursor: pointer;">
                                    </div>
                                </td>
                            </tr>
                        {% endif %}
                    </table>
                    <table style="width: 100%;">
                        <tr>
                            <td colspan="4"
                                style="width: 90%;height: 40px;margin-left: 5%;line-height: 40px;background-color: #F5F5F5;padding-left: 0.5%;border: #cccccc solid 0.5px;padding-right: 1%;border-top: none;">
                                审批详情
                            </td>
                        </tr>
                        {% if 'one' in audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 10%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2.5px;">
                                    <p style="letter-spacing: 3px;">审&nbsp;计&nbsp;科</p>
                                </td>
                                <td colspan="5" style="width: 90%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% for k,v in audit_dic.items %}
                                        {% if k == 'one' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'two' in audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 10%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 2.5px;">
                                    <p style="letter-spacing: 3px;">院长授权</p>
                                </td>
                                <td colspan="5" style="width: 90%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% for k,v in audit_dic.items %}
                                        {% if k == 'two' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        <span>{{ item.state_display }}</span>
                                                        <span style="margin-left: 3%">{{ item.audit_note }}</span>
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'three' in audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 10%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 3px;">
                                    分管领导
                                </td>
                                <td colspan="5" style="width: 90%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% for k,v in audit_dic.items %}
                                        {% if k == 'three' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if 'three' in audit_dic %}
                                                            <p>同意</p>
                                                            <p>{{ item.audit_note }}</p>
                                                        {% else %}
                                                            <p>已接收</p>
                                                        {% endif %}
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'four' in audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 10%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 3px;">
                                    <p style="letter-spacing: 3px;">科&nbsp;主&nbsp;任</p>
                                </td>
                                <td colspan="5" style="width: 90%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% for k,v in audit_dic.items %}
                                        {% if k == 'four' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if 'four' in audit_dic %}
                                                            <p>同意</p>
                                                            <p>{{ item.audit_note }}</p>
                                                        {% else %}
                                                            <p>已接收</p>
{#                                                            <p style="margin-top: 5px;">被授权人：{{ name_list }}</p>#}
                                                        {% endif %}
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}

                        {% if 'five' in audit_dic %}
                            <tr style="width: 100%;">
                                <td style="width: 10%;height: 150px;border: #cccccc solid 1px;text-align: right;padding-right: 1%;border-top: none;letter-spacing: 3px;">
                                    <p style="letter-spacing: 3px;">经&nbsp;办&nbsp;人</p>
                                </td>
                                <td colspan="5" style="width: 90%;height: 150px;border: #cccccc solid 1px;border-left: none;border-top: none;padding-left: 1%;">
                                    {% for k,v in audit_dic.items %}
                                        {% if k == 'five' %}
                                            {% for item in v %}
                                                {% if item.state != 'unaudit' %}
                                                    <div style="width: 100%;line-height: 20px;position: relative;">
                                                        {% if 'four' in audit_dic %}
                                                            <p>同意</p>
                                                            <p>{{ item.audit_note }}</p>
                                                        {% else %}
                                                            <p>已接收</p>
{#                                                            <p style="margin-top: 5px;">被授权人：{{ name_list }}</p>#}
                                                        {% endif %}
                                                    </div>
                                                    <div>
                                                        {% if item.signature_picture %}
                                                            <img src="{{ item.signature_picture }}" alt="" style="width: 150px; height: 60px;">
                                                        {% else %}
                                                            {{ item.audit_user }}
                                                        {% endif %}
                                                    </div>
                                                    <div style="text-align: right;color: #0b0b0b;">{{ item.audit_time }}</div>
                                                {% endif %}
                                            {% endfor %}
                                        {% endif %}
                                    {% endfor %}
                                </td>
                            </tr>
                        {% endif %}
                    </table>
                </div>
            </div>
        </div>
    </div>

    <div id="lct" style="width: 100%;height: 94%;background: white;display: none;">
        <div style="width: 100%;height: 40%;text-align: center;margin: 20% auto;">
            <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                <div style="text-align: center;color: #0d8ddb;">
                    ({{ obj.apply_user.real_name }})<br>
                    发起人
                </div>
                <div style="width: 50px;height: 25px;border-radius: 3px;background: #0d8ddb;color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                    start
                </div>
            </div>

            {% if 'one' in flow_dict %}
                {% for k,v in flow_dict.items %}
                    {% if k == 'one' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                审计科
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'two' in flow_dict %}
                {% for k,v in flow_dict.items %}
                    {% if k == 'two' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                院长授权
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'three' in flow_dict %}
                {% for k,v in flow_dict.items %}
                    {% if k == 'three' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                分管领导
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'four' in flow_dict %}
                {% for k,v in flow_dict.items %}
                    {% if k == 'four' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                科主任
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            {% if 'five' in flow_dict %}
                {% for k,v in flow_dict.items %}
                    {% if k == 'five' %}
                        <div style="display: inline-block;border: {% if v.apply == 'true' %} #0d8ddb {% else %} #cfcfcf {% endif %} solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
                        <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                            <div style="text-align: center;{% if v.apply == 'true' %} color: #0d8ddb; {% endif %}">
                                ({{ v.apply_people }})<br>
                                经办人
                            </div>
                            <div style="width: 25px;height: 25px;border-radius: 50%;{% if v.apply == 'true' %} background: #0d8ddb; {% else %} background: #cfcfcf; {% endif %}color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                                {{ v.sear }}
                            </div>
                        </div>
                    {% endif %}
                {% endfor %}
            {% endif %}

            <div style="display: inline-block;border: #0d8ddb solid 1px;width: 120px;vertical-align: bottom;margin-bottom: 12px;"></div>
            <div style="display: inline-block;vertical-align: top;cursor: pointer;text-align: center;">
                <div style="text-align: center;color: #0d8ddb;">
                    <span style="visibility: hidden;">({{ obj.apply_user.real_name }})</span><br>
                    结束
                </div>
                <div style="width: 50px;height: 25px;border-radius: 3px;background: #0d8ddb;color: white;text-align: center;display: inline-block;font-size: 12px;line-height: 25px;">
                    ending
                </div>
            </div>
        </div>
    </div>

    <div id="del_adjunct"
         style="z-index: 1000;position: fixed;background-color: rgba(36, 36, 36, 0.5);width: 100%;height: 100%;top: 0;left: 0;right: 0;bottom: 0;display: none;">
        <div style="top: 50%;left: 50%;width: 400px;height: 150px;background: white;transform:translate(-50%,-50%);border: #dfdfdf solid 1px;position: absolute;border-radius: 4px;">
            <div style="width: 100%;height: 100px;text-align: center;line-height: 100px;">请查看附件，删除无用的附件！</div>
            <hr>
            <div style="width: 100%;height: 50px;text-align: right;padding-right: 5%;">
                <button onclick="del_adjunct_button()"
                        style="width: 50px;height: 30px;line-height: 30px;margin-top: 10px;background: #00a0e9;color: white;border-radius: 4px;border: #00a0e9 solid 1px;">
                    确认
                </button>
            </div>
        </div>
    </div>

    <div id="addForm3" class="shade">
        <div id="addForm2">
            <div id="title2">
                <div style="line-height: 40px;cursor: move;width: 100%;padding-left: 2%;padding-right: 2%;">
                    <p style="float: left;font-size: 14px;">授权</p>
                    <i class="iconfont icon-quchu" onclick="model_close()" style="cursor: pointer;float: right;"></i>
                </div>
            </div>
            <div style="display: inline-block;width: 100%;height: 480px;border-right: #E8E8E8 solid 1px;font-size: 14px;line-height: 100px;text-align: center;border-bottom: #cfcfcf solid 1px;overflow: auto;">
                <table id="shouqian_table" style="width: 100%;">
                    <tr>
                        <th style="width: 8%;height: 35px;line-height: 35px;text-align: center;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">序号</th>
                        <th style="width: 42%;height: 35px;line-height: 35px;text-align: center;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">授权类目</th>
                        <th style="width: 42%;height: 35px;line-height: 35px;text-align: center;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">授权类型</th>
                        <th style="width: 8%;height: 35px;line-height: 35px;text-align: center;border-bottom: #cfcfcf solid 0.5px;">删除</th>
                    </tr>
                    <tr>
                        <td class="xuhao_td" style="width: 8%;text-align: center;height: 35px;line-height: 35px;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">1</td>
                        <td class="shouquanleixing" style="width: 42%;text-align: left;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;" contenteditable="true"></td>
                        <td style="width: 42%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">
                            {% if obj.authorization_type == '法人授权' %}
                                <input type="radio" name="type-1" value="1"> 一级授权<input type="radio" name="type-1" style="margin-left: 10px;" value="2"> 二级授权<input type="radio" name="type-1" style="margin-left: 10px;" value="3"> 三级授权
                            {% else %}
                                <input type="radio" name="type-1" value="1"> 一级授权<input type="radio" name="type-1" style="margin-left: 10px;" value="2"> 二级授权
                            {% endif %}
                        </td>
                        <td style="width: 8%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;">
                            <img src="../../static/personal_center/img/02删除-填充.png" alt="" style="width: 25px;height: 25px;vertical-align: top;margin-top: 5px;cursor: pointer;" onclick="remove_category(this)">
                        </td>
                    </tr>
                </table>
                <div style="width: 100%;height: 35px;text-align: center;cursor: pointer;" onclick="add_category()">
                    <img src="../../static/personal_center/img/添加_填充.png" alt="" style="width: 25px;height: 25px;vertical-align: top;margin-top: 5px;cursor: pointer;">
                </div>
            </div>
            <div style="width: 100%;height: 40px;text-align: left;padding-left: 2%;font-size: 14px;border-bottom: #DFDFDF solid 0.5px;color: red;line-height: 40px;">
                {% if obj.authorization_type == '法人授权' %}
                    备注：一级授权，法人授权；二级授权，分管领导授权；三级授权，科室负责人授权；
                {% else %}
                    备注：一级授权，分管领导授权；二级授权，科室负责人授权；
                {% endif %}
            </div>
            <div style="width: 100%;height: 40px;text-align: right;padding-right: 2%;font-size: 14px;">
                <button id="QuerenHsouquan" style="width: 70px;height: 30px;margin-top: 5px;border-radius: 3px;border: #00a0e9 solid 0.5px;background: #00a0e9;color: white;line-height: 30px;">确认</button>
            </div>
        </div>
    </div>

    <script src="../../static/system_setup/creat_from/js/jquery-1.10.2.js"></script>
    <script>
        window.onload = function () {
            document.getElementById("loading").style.display = "none";
        }
        var uuid = "{{ obj.fj_number }}"
        function change_mind(ele_id) {
            if (ele_id === "DW") {
                document.getElementById("DW").style.display = "inline-block";
                document.getElementById("DW_tag").className = "tab_top top_tag";
                document.getElementById("lct_tag").className = "tab_top";
                document.getElementById("lct").style.display = "none";
            } else {
                document.getElementById("lct").style.display = "inline-block";
                document.getElementById("lct_tag").className = "tab_top top_tag";
                document.getElementById("DW_tag").className = "tab_top";
                document.getElementById("DW").style.display = "none";
            }
        }

        // 修改
        function ExportCar() {
            var shenqing_type = '{{ obj.authorization_type | safe }}';
            if (shenqing_type === "法人授权") {
                var seal_check = document.getElementsByName("choose_seal");
                var leimuxuhao_list = document.getElementsByClassName("leimuxuhao")
                var detail_json = []
                for (var i=0; i<seal_check.length; i++) {
                    var neirong = document.getElementsByClassName("AuthorizedCategories"+leimuxuhao_list[i].innerText)
                    var AuthorizedType = document.getElementsByClassName("AuthorizedType"+leimuxuhao_list[i].innerText)
                    var leirong_list = []
                    for (var tt=0; tt<neirong.length; tt++) {
                        var Type_S = AuthorizedType[tt].innerText;
                        if (Type_S === "一级授权") {
                            var Type_Number = "1"
                        }else if (Type_S === "二级授权") {
                            Type_Number = "2"
                        }else if (Type_S === "三级授权") {
                            Type_Number = "3"
                        }else {
                            alert("请选择授权类型！");
                            return false
                        }
                        leirong_list.push({"neirong": neirong[tt].innerText, "type": Type_Number})
                    }
                    detail_json.push({"xuhao": leimuxuhao_list[i].innerText, "yinzhang": parseInt(seal_check[i].value), 'neirong': leirong_list})
                }
            }else {
                neirong = document.getElementsByClassName("AuthorizedCategories1")
                AuthorizedType = document.getElementsByClassName("AuthorizedType1")
                leirong_list = []
                detail_json = []
                for (var jj=0; jj<neirong.length; jj++) {
                    Type_S = AuthorizedType[jj].innerText;
                    if (Type_S === "一级授权") {
                        Type_Number = "1"
                    }else if (Type_S === "二级授权") {
                        Type_Number = "2"
                    }else {
                        Type_Number = "3"
                    }
                    leirong_list.push({"neirong": neirong[jj].innerText, "type": Type_Number})
                }
                detail_json.push({"xuhao": '1', "yinzhang": 1, 'neirong': leirong_list})
            }
            var authorization_type = document.getElementById("shenqing_type").innerText;
            document.getElementById("loading").style.display = "inline-block";
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/finance/QuickAuthorizationIndex.html", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("detail_json=" + JSON.stringify(detail_json)+"&id="+'{{ obj.id }}'+"&admin=true&authorization_type="+authorization_type);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        var JsonDate = JSON.parse(xhr.responseText);
                        if (JsonDate["code"] === 200) {
                            alert("修改成功");
                            window.location = "QuickAuthorizationList.html";
                        } else {
                            alert(JsonDate['message']);
                            document.getElementById("loading").style.display = "none";
                        }
                    }
                }
            };
        }

        function chage_yulan(this_, file_path) {
            var fujian = document.getElementById("fujian");
            var file_index = file_path.lastIndexOf(".")
            var ext = file_path.substring(file_index+1)
            var arr=['jpg', 'JPG', "JPEG", "jpeg", "PNG", "png"];
            var ext_index=arr.indexOf(ext);
            if (ext_index === -1){
                fujian.innerHTML = '<embed id="embed_file" src="'+file_path+'" type="" style="width: 100%;height: 100%;">'
            }else {
                fujian.innerHTML = '<img src="' + file_path + '" alt="application/pdf" style="width: 800px;height: 100%;">'
            }

            var a_tag_list = document.getElementsByClassName("a_tag_cla");
            for (var i = 0;i<a_tag_list.length; i++){
                a_tag_list[i].style.background='';
            }
            this_.style.background='#cfcfcf';
        }

        function myclick1() {
            var selecteddiv = document.getElementById("selectdiv_1");
            selecteddiv.style.display = "block";
        }

        function mousein1() {
            var selecteddiv = document.getElementById("selectdiv_1");
            selecteddiv.style.display = "block";
        }

        //鼠标离开多选框的div【selectdiv】
        function mouseout1() {
            var selecteddiv = document.getElementById("selectdiv_1");
            selecteddiv.style.display = "none";
        }

        //checkbox的点击事件
        function mycheck1(obj) {
            var checked_list = document.getElementsByClassName("check_anniu");
            var checked_value = []
            if (obj.checked) {
                for (var t = 0; t < checked_list.length; t++) {
                    if (checked_list[t].checked) {
                        checked_value.push(checked_list[t].value)
                    }
                }
            }
            document.getElementById("selectButton_1").value = checked_value.join(", ");
        }

        // 删除附件
        function RemoveTr(_this, tbody_id, wj_id) {
            var table = document.getElementById(tbody_id);
            var trNode = $(_this).parent().parent();
            trNode.remove();

            for (var i=0; i<table.children.length; i++){
                table.children[i].children[0].innerHTML=i+1;
            }

            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/delete_attachments_view", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("id="+String(wj_id));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        alert("删除成功！")
                    }
                }
            };
        }

        // 上传附件
        function upload_accessory(file_type, tbody_id, accessory_type) {
            document.getElementById("loading").style.display = "inline-block";
            var form = new FormData();
            var files = document.getElementById(accessory_type).files[0];
            form.append(file_type, files);
            form.append('number', "{{ obj.fj_number }}")
            form.append('source', 'yysq');

            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/topics_attachments_upload", true);
            xhr.send(form);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        console.log(JsonDate);
                        creat_table(JsonDate, tbody_id)
                    }
                }
            };
        }

        // 创建附件列表
        function creat_table(JsonData, tbody_id) {
            var t_table = document.getElementById(tbody_id);
            var local_host = window.location.host;
            if (Array.isArray(JsonData["pdf_path"])) {
                for (var i = 0; i < JsonData["pdf_path"].length; i++) {
                    var tr = document.createElement("tr");var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");var td4 = document.createElement("td");var td5 = document.createElement("td");var td6 = document.createElement("td");
                    td1.innerHTML = t_table.children.length + 1;td1.style.textAlign = "center";td1.style.border = "#cccccc solid 1px";td1.style.borderTop = "none";
                    td2.innerHTML = JsonData["file_name"];td2.style.paddingLeft = "1%";td2.style.border = "#cccccc solid 1px";td2.style.borderLeft = "none";td2.style.borderTop = "none";
                    td3.innerHTML = JsonData["file_size"];td3.style.textAlign = "center";td3.style.border = "#cccccc solid 1px";td3.style.borderLeft = "none";td3.style.borderTop = "none";
                    td4.innerHTML = JsonData["upload_time"];td4.style.textAlign = "center";td4.style.border = "#cccccc solid 1px";td4.style.borderLeft = "none";td4.style.borderTop = "none";
                    td5.innerHTML = JsonData["uploader"];td5.style.textAlign = "center";td5.style.border = "#cccccc solid 1px";td5.style.borderLeft = "none";td5.style.borderTop = "none";
                    td6.innerHTML = "<a target='_blank' href='" + JsonData["pdf_path"][i]["pdf_path"] + "'>查看</a> | <a style='color: red;' href='#' onclick='RemoveTr(this, \"" + tbody_id + "\", \"" + JsonData["pdf_path"][i]["id"] + "\")'>删除</a>";
                    td6.style.textAlign = "center";td6.style.border = "#cccccc solid 1px";td6.style.borderLeft = "none";
                    tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);tr.appendChild(td5);tr.appendChild(td6);
                    t_table.appendChild(tr);
                }
                if (JsonData["pdf_path"].length > 1) {
                    document.getElementById("del_adjunct").style.display = 'block';
                }
            } else {
                tr = document.createElement("tr");td1 = document.createElement("td");td2 = document.createElement("td");td3 = document.createElement("td");td4 = document.createElement("td");td5 = document.createElement("td");td6 = document.createElement("td");
                td1.innerHTML = t_table.children.length + 1;td1.style.textAlign = "center";td1.style.border = "#cccccc solid 1px";td1.style.borderTop = "none";
                td2.innerHTML = JsonData["file_name"];td2.style.paddingLeft = "1%";td2.style.border = "#cccccc solid 1px";td2.style.borderLeft = "none";td2.style.borderTop = "none";
                td3.innerHTML = JsonData["file_size"];td3.style.textAlign = "center";td3.style.border = "#cccccc solid 1px";td3.style.borderLeft = "none";td3.style.borderTop = "none";
                td4.innerHTML = JsonData["upload_time"];td4.style.textAlign = "center";td4.style.border = "#cccccc solid 1px";td4.style.borderLeft = "none";td4.style.borderTop = "none";
                td5.innerHTML = JsonData["uploader"];td5.style.textAlign = "center";td5.style.border = "#cccccc solid 1px";td5.style.borderLeft = "none";td5.style.borderTop = "none";
                td6.innerHTML = "<a target='_blank' href='" + JsonData["pdf_path"] + "'>查看</a> | <a style='color: red;' href='#' onclick='RemoveTr(this, \"" + tbody_id + "\", \"" + JsonData["id"] + "\")'>删除</a>";
                td6.style.textAlign = "center";td6.style.border = "#cccccc solid 1px";td6.style.borderLeft = "none";td6.style.borderTop = "none";
                tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);tr.appendChild(td4);tr.appendChild(td5);tr.appendChild(td6);
                t_table.appendChild(tr);
            }
        }

        function model_close() {
            document.getElementById("addForm3").style.display="none";
        }

        function model_inline(this_eve) {
            var inner_str = document.getElementById(this_eve).innerText;
            var shouquanleixing_list = document.getElementsByClassName("shouquanleixing");
            for (var t=0; t<shouquanleixing_list.length; t++) {
                shouquanleixing_list[t].innerHTML='';
            }
            document.getElementById("addForm3").style.display="table-row";
            document.getElementById("QuerenHsouquan").setAttribute("onclick", "queren_hsouquan('"+this_eve+"')")
        }

        function queren_hsouquan(this_eve) {
            document.getElementById(this_eve).innerText = "";
            document.getElementById(this_eve).style.color = "";
            document.getElementById("shouquan_type_"+this_eve.split("_")[1]).innerText = "";
            var xuhao_td = document.getElementsByClassName("xuhao_td");
            var shouquanleimu_list = document.getElementsByClassName("shouquanleixing");
            var shouquan_count = 1;var category_list = [];
            for (var i=0; i<shouquanleimu_list.length; i++) {
                var class_name = "type-"+xuhao_td[i].innerText
                var TypeS = $("input[type=radio][name="+class_name+"]:checked").val()
                if (String(TypeS) === "undefined") {
                    alert("请选择授权类型！");
                    return false
                }
                category_list.push({"xuhao": xuhao_td[i].innerText, "category": shouquanleimu_list[i].innerText, "Type": TypeS})
                shouquan_count += 1
            }

            for (var t=0; t<category_list.length; t++) {
                var p_str = `<p class="AuthorizedCategories`+this_eve.split("_")[1]+`" style="width: 100.5%;height: 30px;line-height: 30px;border-bottom: #DFDFDF solid 0.5px;font-size: 14px;">`+category_list[t]['category']+`</p>`
                var pinjie_id = "#"+this_eve
                $(pinjie_id).append(p_str)
                var pinjie_type = "#shouquan_type_"+this_eve.split("_")[1];
                if (category_list[t]['Type'] === '1') {
                    var categoryType = "一级授权";
                } else if (category_list[t]['Type'] === '2') {
                    categoryType = "二级授权";
                }else {
                    categoryType = "三级授权";
                }
                var p_tag_str = `<p class="AuthorizedType`+this_eve.split("_")[1]+`" style="width: 100%;height: 30px;line-height: 30px;border-bottom: #DFDFDF solid 0.5px;font-size: 14px;text-align: center;">`+categoryType+`</p>`;
                $(pinjie_type).append(p_tag_str)
            }
            model_close()
        }

        function remove_time_adress(obj) {
            var trNode = $(obj).parent().parent();
            trNode.remove();
            var xuhao_list = document.getElementsByClassName("leimuxuhao");
            for (var i=0; i<xuhao_list.length; i++) {
                xuhao_list[i].innerText=i+1
            }
        }

        function add_other() {
            var leimuxuhao_count =  document.getElementsByClassName("leimuxuhao").length + 1;
            var html = `<tr style="margin-left: 1%;">
                            <td id='leimuxuhao`+String(leimuxuhao_count)+`' class="leimuxuhao" style="width: 5%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">`+String(leimuxuhao_count)+`</td>
                            <td style="width: 25%;border: #cfcfcf solid 0.5px;text-align: center;height: 35px;line-height: 35px;">
                                <select name="choose_seal" class="AuthorizedSeal`+String(leimuxuhao_count)+`" style="width: 100%;height: 100%;border: none;outline: none;">
                                    {% for seal in seal_obj %}
                                        <option value="{{ seal.id }}" style="text-align: center;">{{ seal.seal_name }}</option>
                                    {% endfor %}
                                </select>
                            </td>
                            <td class="leimuneirong" id="span_`+String(leimuxuhao_count)+`" onclick="model_inline(this.id)" style="width: 50%;border: #cfcfcf solid 0.5px;height: 35px;line-height: 35px;color: #CCCCCC;cursor: pointer;">
                                请填写授权类型
                            </td>
                            <td style="width: 20%;border: #cfcfcf solid 0.5px;text-align: left;height: 35px;line-height: 35px;cursor: pointer;">
                                <div id="shouquan_type_`+String(leimuxuhao_count)+`" style="padding-left: 10px;outline: none;display: -moz-inline-box; display: inline-block;width:80%;white-space:pre-wrap;text-align: left;"></div>
                                <span onclick="remove_time_adress(this)" style="color: red; cursor: pointer; display: inline-block;">删除</span>
                            </td>
                        </tr>`
            $("#leimuId").append(html);
        }

        function add_category() {
            var tr_lenght = document.getElementsByClassName("shouquanleixing").length+1;
            var shenqing_type = '{{ obj.authorization_type | safe }}';
            if (shenqing_type === "法人授权"){
                var html_str = `
                        <tr>
                            <td class="xuhao_td" style="width: 8%;text-align: center;height: 35px;line-height: 35px;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">`+String(tr_lenght)+`</td>
                            <td class="shouquanleixing" style="width: 42%;text-align: left;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;" contenteditable="true"></td>
                            <td style="width: 42%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">
                                <input type="radio" name="type-`+String(tr_lenght)+`" value="1"> 一级授权<input type="radio" name="type-`+String(tr_lenght)+`" style="margin-left: 10px;" value="2"> 二级授权<input type="radio" name="type-`+String(tr_lenght)+`" style="margin-left: 10px;" value="3"> 三级授权
                            </td>
                            <td style="width: 8%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;">
                                <img src="../../static/personal_center/img/02删除-填充.png" alt="" style="width: 25px;height: 25px;vertical-align: top;margin-top: 5px;cursor: pointer;" onclick="remove_category(this)">
                            </td>
                        </tr>
                `
            }else {
                html_str = `
                        <tr>
                            <td class="xuhao_td" style="width: 8%;text-align: center;height: 35px;line-height: 35px;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">`+String(tr_lenght)+`</td>
                            <td class="shouquanleixing" style="width: 42%;text-align: left;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;" contenteditable="true"></td>
                            <td style="width: 42%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;border-right: #cfcfcf solid 0.5px;">
                                <input type="radio" name="type-`+String(tr_lenght)+`" value="1"> 一级授权<input type="radio" name="type-`+String(tr_lenght)+`" style="margin-left: 10px;" value="2"> 二级授权
                            </td>
                            <td style="width: 8%;text-align: center;height: 35px;line-height: 35px;padding-left: 0.5%;border-bottom: #cfcfcf solid 0.5px;">
                                <img src="../../static/personal_center/img/02删除-填充.png" alt="" style="width: 25px;height: 25px;vertical-align: top;margin-top: 5px;cursor: pointer;" onclick="remove_category(this)">
                            </td>
                        </tr>
                `
            }
            $("#shouqian_table").append(html_str);
        }

        function remove_category(obj) {
            var trNode = $(obj).parent().parent();
            trNode.remove();
            var tr_lenght = document.getElementsByClassName("shouquanleixing").length;
            var xuhao_td = document.getElementsByClassName("xuhao_td")

            for (var i=0; i<tr_lenght; i++) {
                xuhao_td[i].innerText = i+1;
            }
        }
    </script>
</body>
</html>